home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / ubmark / work.c < prev    next >
C/C++ Source or Header  |  1996-07-10  |  340b  |  23 lines

  1. /*******
  2. *    compile to "work.exe"
  3. *    place in /bin directory
  4. ******/
  5.  
  6.  
  7.  
  8. #include <stdio.h>
  9.  
  10. main()    {
  11.  
  12.     FILE    *workfile, *tempfile;
  13.     
  14.     for( ; 1 < 2; )        {
  15.     workfile = tmpfile();
  16.     fputs("work. oh yes. work.", workfile);
  17.     tempfile = tmpfile();
  18.     fwrite(workfile, 19, 100, tempfile);
  19.     fclose(tempfile);
  20.     fclose(workfile);
  21.     }
  22. }
  23.